﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace Common
{
    public class CommonUI
    {
        //public static List<T> MoveItemInListUp<T>(List<T> list, T Item)
        //{
        //    if (list.IndexOf(Item) != 0)
        //    {
        //        list.Reverse(list.IndexOf(Item)-1, 2);
        //    }
        //    return list;
        //}
        //public static List<T> MoveItemInListDown<T>(List<T> list, T Item)
        //{
        //    if (list.IndexOf(Item) < list.Count - 1)
        //    {
        //        list.Reverse(list.IndexOf(Item), 2);
        //    }
        //    return list;
        //}
        //public static void AddControlToNodeAsHeaderImage(C1TreeNode node, FrameworkElement Image)
        //{
        //    C1StackPanel nodeHeader = node.Children[0] as C1StackPanel;
        //    nodeHeader.Children.Insert(1, Image);
        //}
    }
}
